const mongoose = require('mongoose');
//设置默认链接
const path_db = "mongodb://localhost:27017/admin";
mongoose.connect(path_db);
mongoose.Promise = global.Promise;
//取得连接
const db = mongoose.db;
module.exports = db;
